-- GENERATED SPELL FOR [Warmage Hollister] --


function spell0_27906(pUnit, Event) --@Amplify Damage,n/a--
pUnit:FullCastSpellOnTarget(12738,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27906', 10261, 1)
end

function spell1_27906(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(38526,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27906', 640, 1)
end

function spell2_27906(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(17290,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27906', 3000, 1)
end

function spell3_27906(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_27906', 0, 1)
end

function spell4_27906(pUnit, Event) --@Frostbolt,Self--
pUnit:FullCastSpellOnTarget(56837,pUnit)
pUnit:RegisterEvent('Sorts_27906', 7000, 1)
end

function Sorts_27906(pUnit, Event)
local choix_sorts_27906 = math.random(0, 4)
if choix_sorts_27906 == 0 then
pUnit:RegisterEvent('spell0_27906', 1, 1)
end
if choix_sorts_27906 == 1 then
pUnit:RegisterEvent('spell1_27906', 1, 1)
end
if choix_sorts_27906 == 2 then
pUnit:RegisterEvent('spell2_27906', 1, 1)
end
if choix_sorts_27906 == 3 then
pUnit:RegisterEvent('spell3_27906', 1, 1)
end
if choix_sorts_27906 == 4 then
pUnit:RegisterEvent('spell4_27906', 1, 1)
end
end

function mob27906_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27906', math.random(1500, 3000), 1)
end

function mob27906_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27906_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27906_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27906, 1, 'mob27906_Action')
RegisterUnitEvent(27906, 2, 'mob27906_Leave')
RegisterUnitEvent(27906, 3, 'mob27906_Kill')
RegisterUnitEvent(27906, 4, 'mob27906_Die')
